﻿#include "CmdCenterWidgetTabWidgetCurrentChanged.h"
#include <QFile>
#include <QDebug>
#include "BaseModule/IBaseSignal.h"
#include "PostCommandPy.h"

namespace PostCommand
{
    CmdCenterWidgetTabWidgetCurrentChanged::CmdCenterWidgetTabWidgetCurrentChanged()
        : CommandBase()
    {
        this->initCmdName();
    }
    CmdCenterWidgetTabWidgetCurrentChanged::~CmdCenterWidgetTabWidgetCurrentChanged()
    {
    }

    bool CmdCenterWidgetTabWidgetCurrentChanged::execute()
    {
        bool _success = false;
        emit IBaseSignalInstance->signal_centerWidgetTabWidgetCurrentChanged(m_data);
        return true;
    }

    void CmdCenterWidgetTabWidgetCurrentChanged::undo()
    {
        // TODO: undo
    }

    void CmdCenterWidgetTabWidgetCurrentChanged::redo()
    {
        execute();
    }

} // namespace PostCommand
